package cn.com.cifi.mars.mapper.mars;

import cn.com.cifi.mars.bean.dto.SignPlanProgressDto;
import cn.com.cifi.mars.entity.SignPlanProgress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: jyx
 * @date: 2020/7/27 9:46
 */
public interface SignPlanProgressMapper extends BaseMapper<SignPlanProgress> {

    /**
     * 删除指定年月数据
     * @param yearMonth
     */
    void delByYearMonth(@Param("yearMonth") String yearMonth);

    /**
     * 删除指定年月和项目的数据
     * @param yearMonth
     */
    void delByYearMonthAndProjectId(@Param("yearMonth") String yearMonth,@Param("projectId") String projectId);

    /**
     * 批量新增数据
     * @param insertList
     */
    void insertList(List<SignPlanProgress> insertList);

    /**
     * 获取事业部、城市公司、项目、分期全部层级结构数据
     * @return
     * @param hrOrgType
     */
    List<SignPlanProgress> selectAllOrgType(@Param("hrOrgType") String hrOrgType);
}
